package main.model.hexisland.tile;

import main.model.island.grid.GridType;

/**
 * A hexagonal tile map using even-r offset co-ordinates
 *
 * User: gabe
 * Date: 10/06/13
 * Time: 21:08
 */
public abstract class AbstractTile implements Tile {

    public String toString(){
        return getType().toString();
    }

    //public void setTree(int treeup);
    //public int getTree();
    //public int getTreeMax();

    // # convert cube to even-r offset
    // q = x + (z + z&1) / 2
    // r = z

    // # convert even-r offset to cube
    // x = q - (r + r&1) / 2
    // z = r
    // y = -x-z

    // neighbors =  [
    //      [   [+1,  0],  [+1, -1],  [ 0, -1],
    //          [-1,  0],  [ 0, +1],  [+1, +1]  ],
    //      [   [+1,  0],  [ 0, -1],  [-1, -1],
    //          [-1,  0],  [-1, +1],  [ 0, +1]  ]
    //    ];
    //    parity =  r  & 1;
    //    d = neighbors[parity][direction];
    //    return Hex(q + d[0], r + d[1]);


}
